import zhCN from 'antd/lib/locale/zh_CN';
import enUS from 'antd/lib/locale/en_US';

interface ILanguageProps {
    zhCN: languageType;
    enUS: languageType;
}

//国际化配置
const language: ILanguageProps = {
    zhCN: 'zhCN',
    enUS: 'enUS',
};

const languageList: Array<{ name: string; code: languageType }> = [
    { name: '中文', code: language.zhCN },
    { name: 'English', code: language.enUS },
];

//antd的国际化
const antdLanguage = {
    zhCN: zhCN,
    enUS: enUS,
};

const constant = {
    language,
    languageList,
    antdLanguage,
    leftMenuWidth: 208,
    collapsedWidth: 48,
    rightForCollapsedWidth: 992,
};

export { constant };
